# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: jaewon

from coin.exchange.okex_futures_swap.ws.subscriber import OkexFuturesSwapSubscriber
from coin.strategy.mm.feed_builder import OkexFuturesSwapFlowBookBuilder
from coin.strategy.mm.base.feed import BaseFeedSubsystem
from coin.strategy.mm.subscription import SubscriptionRequest


class OkexFuturesSwapFeedSubsystem(BaseFeedSubsystem):
  FeedSubReq = SubscriptionRequest('Futures', 'Okex', 'v3_swap')
  FeedSubscriber = OkexFuturesSwapSubscriber
  FlowBookBuilder = OkexFuturesSwapFlowBookBuilder

  def _get_subscription(self):
    return [product.native_symbol_v3 for product in self._products]
